local dashe = fk.CreateSkill {
  name = "lingling__dashe",
  tags = { Skill.Compulsory },
}

Fk:loadTranslationTable {
  ["lingling__dashe"] = "大慑",
  [":lingling__dashe"] = "锁定技，当你使用【杀】对其他角色造成伤害后，其减1点体力上限。",
}

dashe:addEffect(fk.Damage, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(dashe.name) and
        data.card and data.card.trueName == "slash" and
        not data.to.dead and data.to ~= player
  end,
  on_use = function(self, event, target, player, data)
    if data.to.dead then return end
    player.room:changeMaxHp(data.to, -1)
  end
})

return dashe
